#ifndef   __ADC_H
#define   __ADC_H

#define  BATTERY_ADC_CH             0x0A
#define  START_ADC_CONVERSION_CH    ADC_CR0 |= 0x20

typedef struct 
{  
  uint8_t   u8step;
  uint16_t  u16max;
  uint16_t  u16min;
  uint16_t  u16sum;
  uint16_t  u16AdcValue;  
  uint16_t  u16AdcFilterValue;          
  uint8_t   u8cnt;   
}ADC_STRUCT;
extern ADC_STRUCT structBattery;

void Get_ADC_Data(ADC_STRUCT* adcPtr);
void adc_filter(ADC_STRUCT *adcvar);
void get_radio_voltage(void);
#endif